<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
include_once "ConexionBD.php";
include_once "../negocio/Contacto.php";

class ContactoSQL {
    private $sql;

    function ContactoSQL() {
        
    }
    
    public function agregarContacto(&$obj) {
        $err = 1;
        $con = new conexionBD();
        $con->ejecutarSqlCruda("INSERT INTO `contacto`(`ESC_ID`, `CONT_CORREO`, `CONT_TELEFONO`, `CONT_PAGINA_WEB`, `CONT_FACEBOOK`, `CONT_SKYPE`, `CONT_MESSENGER`, `CONT_TWITTER`, `CONT_TUMBLR`) 
        VALUES ('".$obj->getEsc_id()."','".$obj->getCont_correo()."','".$obj->getCont_telefono()."','".$obj->getCont_pagina_web()."','".$obj->getCont_facebook()."','".$obj->getCont_skype()."','".$obj->getCont_messenger()."','".$obj->getCont_twitter()."','".$obj->getCont_tumblr()."')");        
        $con->cerrar_conexion();
        return $err;
    }
    
}

?>
